package com.it.zhangjun.effective;

/**
 * @author jun.zhang6
 * @date 2021/4/12
 */
public class PizzaTest {
    public static void main(String[] args) {
        NyPizza nyPizza = new NyPizza.Builder(NyPizza.Size.SMALL)
                .addTopping(Pizza.Topping.MUSHROOM)
                .addTopping(Pizza.Topping.ONION)
                .build();
        Calzone calzone = new Calzone.Builder().addTopping(Pizza.Topping.HAM).sauceInside().build();

        System.out.println(nyPizza);
        System.out.println(calzone);
    }
}
